package com.objcat.playground.hdoj.hdoj1003;

import java.math.BigInteger;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int line = sc.nextInt();
            for (int i = 1; i <= line; i++) {
                BigInteger a = sc.nextBigInteger();
                BigInteger b = sc.nextBigInteger();
                System.out.println("Case " + i + ":");
                System.out.println(a + " + " + b + " = " + a.add(b));
                if (i != line) {
                    System.out.println();
                }
            }
        }
    }
}
